<?php
echo '<div class="containerbox medias">';
echo '<div class="header">';
echo sigi::actionbox_clear('content', $content->id ,'contmedlinks');
$links=array();
$links[]=array('title'=>'add Medialinks', 'link'=>CONTDIR.'contmedlink/form/multiple?parent_id='.$content->id);
echo sigi::addbox($links);
echo 'Medien';
echo '</div>';

echo '<div class="container">';
echo '<ul class="sortable" contentid="'.$content->id.'"  url="'.url::base(true).CONTDIR.'contmedlink/"  elmclass="media_elm" >';
foreach($content->orderby('position')->contmedlinks as $link){
	echo '<li class="media_elm" id="'.$link->id.'" >';
	echo sigi::actionbox_small('contmedlink', $link->id);
	$media=$link->media;
	$url=$media->get_icon(100,100);
	echo html::image($url);
	echo '<p>';
	echo $link->title;
	echo '</p>';
	echo '<p>'.$link->text.'</p>';
	echo '</li>';	
}
echo '</ul>';
echo '<div class="clear"></div>';
echo '</div>';
echo '</div>';


?>